curves in three dimensions